package com.xiaoh.dormitoryrepairreportbackend.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 工单日志表
 */
@TableName(value = "work_order_log")
@Data
@Schema(description = "工单日志表")
public class WorkOrderLog implements Serializable {

    /**
     * 日志ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "日志ID")
    private Long id;

    /**
     * 工单ID
     */
    @TableField(value = "work_order_id")
    @Schema(description = "工单ID")
    private Long workOrderId;

    /**
     * 操作人ID
     */
    @TableField(value = "operator_id")
    @Schema(description = "操作人ID")
    private Long operatorId;

    /**
     * 操作类型
     */
    @TableField(value = "operation_type")
    @Schema(description = "操作类型")
    private String operationType;

    /**
     * 操作内容或备注
     */
    @TableField(value = "content")
    @Schema(description = "操作内容或备注")
    private String content;

    /**
     * 操作时间
     */
    @TableField(value = "created_at")
    @Schema(description = "操作时间")
    private LocalDateTime createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
